﻿using System.Collections.Generic;
using System.Runtime.Serialization;



namespace ScriptEase
{
    /// <summary>
    /// The definition of a static Workspace map.
    /// </summary>
    [DataContract]
    internal class LocalWorkspace
    {
        [DataMember(IsRequired = true)]
        public List<WorkspaceMapping> Mappings { get; set; }
    }


    [DataContract]
    internal class WorkspaceMapping
    {
        /// <summary>
        /// The full name (incl. namespace) of a web resource.
        /// </summary>
        [DataMember(IsRequired = true)]
        public string WebResourceName { get; set; }

        /// <summary>
        /// A relative or absolute path to the local file.
        /// </summary>
        [DataMember(IsRequired = true)]
        public string LocalFileName { get; set; }
    }
}